/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved.
 *
 */

export interface ExtraInfo {
  infoMsg?: string,
  warnMsg?: string
}

/**
 * 抛出去的错误对象 + 额外信息
 */
export class ExtendedErrorInfo extends Error {
  public extraInfo: ExtraInfo | undefined;

  constructor(message: string, extraInfo?: ExtraInfo) {
    super(message);
    this.extraInfo = extraInfo;
  }
}